import $http from "@/utils/http";

export async function getRoleListApi(param){
   return await $http.get("/role/list",{params:param});
}

export async function updateRoleApi(param){
    return await $http.post("/role/update",param)
}

export async function addRoleApi(param){
    return await $http.post("/role/add",param)
}

export async function deleteRoleApi(param){
    return await $http.delete(`/role/delete/${param}`)
}